package oop.staticPackage;

public class People {

    public static String name = "";
    public int age;

    static{
        System.out.println("我是父类的静态块");
    }
    static{
        System.out.println("父类的第二个静态块");
    }

    {
        System.out.println("我是父类的匿名块");
    }

    public People(){
        System.out.println("我是父类的构造方法");
    }

    public static void eat(String food){
        System.out.println("今天吃了"+food);
    }

    public void drink(){
        System.out.println();
    }
}
